package com.wangji92.arthas.plugin.demo.controller;

import com.wangji92.arthas.plugin.demo.service.impl.BugsService;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RestController;

import javax.annotation.Resource;

/**
 * @author liuxiongkang
 */
@RestController
public class BugsController {

    @Resource
    private BugsService bugsService;

    @GetMapping("bug1")
    public Object bug1() {
        bugsService.bug1();
        return "ok";
    }

    @GetMapping("bug2")
    public Object bug2() {
        bugsService.bug2();
        return "ok";
    }

    @GetMapping("bug3")
    public Object bug3() {
        bugsService.bug3();
        return "ok";
    }

}
